package com.foreknow.practice.OOp;

public class Test5 {


    //请选择对方角色
    public int role(int choice){
        Test2 test2 = new Test2();//调用 要开始么?方法
        String name ="fender";
//        Test6
        switch (choice){
            case 1:
                System.out.println(name+"   vs   刘备    对战");
                test2.decide();
                break;
            case 2:
                System.out.println(name+"   vs   孙权    对战");
                test2.decide();
                break;
            case 3:
                System.out.println(name+"   vs   曹操    对战");
                test2.decide();
                break;
        }

      return choice;
    }
}
